<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: GlslShader&lt; SHADERTYPE &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">GlslShader&lt; SHADERTYPE &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="GlslShader" -->
<p><a href="class_glsl_shader-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLenum&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#a895e9423a5f5a913bdec9335ac517afc">shaderType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#a6e39dfae18ac890840524faced4af698">shaderId</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#a80ddc4be23be69912651db0385a1a4b9">loadFromFile</a> (const std::string &amp;filename)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#a495f058db0d95e8987ebca491c535215">loadFromString</a> (const std::vector&lt; std::string &gt; &amp;source)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#acc20e4b03621cb1631e901a51aec6922">compile</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#aba3f29ce22e41fb5be6a6c89c214da1f">compileStatus</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#ab0c2e76279c634e75e75b24a85a2ef18">infoLog</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_glsl_shader.html#a81815dbf544cca88a36dbf24b7c3cecd">source</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e72295e145b191edf50c816b69db9b7"></a><!-- doxytag: member="GlslShader::shaderId_" ref="a7e72295e145b191edf50c816b69db9b7" args="" -->
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>shaderId_</b></td></tr>
</table>
<h3>template&lt;GLenum SHADERTYPE&gt;<br/>
 class GlslShader&lt; SHADERTYPE &gt;</h3>

<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acc20e4b03621cb1631e901a51aec6922"></a><!-- doxytag: member="GlslShader::compile" ref="acc20e4b03621cb1631e901a51aec6922" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::compile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compile the shader. A shader should be compiled before use in a shader program</p>
<p>The function compile the shader loaded with loadFromFile or loadFromString.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the compilation was successful, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="aba3f29ce22e41fb5be6a6c89c214da1f"></a><!-- doxytag: member="GlslShader::compileStatus" ref="aba3f29ce22e41fb5be6a6c89c214da1f" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::compileStatus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the status of the compilation.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the previous call to compile was successful; false, otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ab0c2e76279c634e75e75b24a85a2ef18"></a><!-- doxytag: member="GlslShader::infoLog" ref="ab0c2e76279c634e75e75b24a85a2ef18" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::infoLog </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the a string with compilation log messages.</p>
<p>This method should be called after <a class="el" href="class_glsl_shader.html#acc20e4b03621cb1631e901a51aec6922">compile()</a> has failed to verify </p>

</div>
</div>
<a class="anchor" id="a80ddc4be23be69912651db0385a1a4b9"></a><!-- doxytag: member="GlslShader::loadFromFile" ref="a80ddc4be23be69912651db0385a1a4b9" args="(const std::string &amp;filename)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::loadFromFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Load the shader from file </p>

</div>
</div>
<a class="anchor" id="a495f058db0d95e8987ebca491c535215"></a><!-- doxytag: member="GlslShader::loadFromString" ref="a495f058db0d95e8987ebca491c535215" args="(const std::vector&lt; std::string &gt; &amp;source)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::loadFromString </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>load from a list of strings. </p>

</div>
</div>
<a class="anchor" id="a6e39dfae18ac890840524faced4af698"></a><!-- doxytag: member="GlslShader::shaderId" ref="a6e39dfae18ac890840524faced4af698" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">GLuint <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::shaderId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the GL object name or id for this shader. </p>

</div>
</div>
<a class="anchor" id="a895e9423a5f5a913bdec9335ac517afc"></a><!-- doxytag: member="GlslShader::shaderType" ref="a895e9423a5f5a913bdec9335ac517afc" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">GLenum <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::shaderType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function return the shader type this instance is. </p>

</div>
</div>
<a class="anchor" id="a81815dbf544cca88a36dbf24b7c3cecd"></a><!-- doxytag: member="GlslShader::source" ref="a81815dbf544cca88a36dbf24b7c3cecd" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;GLenum SHADERTYPE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_glsl_shader.html">GlslShader</a>&lt; SHADERTYPE &gt;::source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the source code of the shader. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>engine/include/<a class="el" href="_glsl_shader_8h_source.html">GlslShader.h</a></li>
<li>engine/src/GlslShader.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu May 31 2012 16:19:52 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
